package vista;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.JButton;

import javax.swing.WindowConstants;
import javax.swing.SwingUtilities;


/**
* This code was edited or generated using CloudGarden's Jigloo
* SWT/Swing GUI Builder, which is free for non-commercial
* use. If Jigloo is being used commercially (ie, by a corporation,
* company or business for any purpose whatever) then you
* should purchase a license for each developer using Jigloo.
* Please visit www.cloudgarden.com for details.
* Use of Jigloo implies acceptance of these licensing terms.
* A COMMERCIAL LICENSE HAS NOT BEEN PURCHASED FOR
* THIS MACHINE, SO JIGLOO OR THIS CODE CANNOT BE USED
* LEGALLY FOR ANY CORPORATE OR COMMERCIAL PURPOSE.
*/
public class Menu extends javax.swing.JFrame {
	private JButton btnAltaCliente;
	private JButton btnSalir;
	private JButton btnListar;
	private JButton btnAltaTarjeta;

	/**
	* Auto-generated main method to display this JFrame
	*/
	public static void main(String[] args) {
		SwingUtilities.invokeLater(new Runnable() {
			public void run() {
				Menu inst = new Menu();
				inst.setLocationRelativeTo(null);
				inst.setVisible(true);
			}
		});
	}
	
	public Menu() {
		super();
		initGUI();
	}
	
	public void initGUI() {
		try {
			setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
			this.setTitle("Menu");
			getContentPane().setLayout(null);
			{
				btnAltaCliente = new JButton();
				getContentPane().add(btnAltaCliente);
				btnAltaCliente.setText("Alta de Cliente");
				btnAltaCliente.setBounds(112, 45, 170, 21);
				btnAltaCliente.addActionListener(new ActionListener() {
					public void actionPerformed(ActionEvent evt) {
						AltaCliente ac = new AltaCliente();
						ac.setVisible(true);
						ac.setLocationRelativeTo(null);
					}
				});
			}
			{
				btnAltaTarjeta = new JButton();
				getContentPane().add(btnAltaTarjeta);
				btnAltaTarjeta.setText("Alta de Tarjeta");
				btnAltaTarjeta.setBounds(112, 94, 170, 21);
				btnAltaTarjeta.addActionListener(new ActionListener() {
					public void actionPerformed(ActionEvent evt) {
						AltaTarjeta at = new AltaTarjeta();
						at.setVisible(true);
						at.setLocationRelativeTo(null);
					}
				});
			}
			{
				btnSalir = new JButton();
				getContentPane().add(btnSalir);
				btnSalir.setText("Salir");
				btnSalir.setBounds(150, 217, 76, 21);
				btnSalir.addActionListener(new ActionListener() {
					public void actionPerformed(ActionEvent evt) {
						dispose();
					}
				});
			}
			{
				btnListar = new JButton();
				getContentPane().add(btnListar);
				btnListar.setText("Listar Tarjetas");
				btnListar.setBounds(112, 144, 170, 21);
				btnListar.addActionListener(new ActionListener() {
					public void actionPerformed(ActionEvent evt) {
						IngresoListarTarjetas i = new IngresoListarTarjetas();
						i.setVisible(true);
						i.setLocationRelativeTo(null);
					}
				});
			}
			pack();
			setSize(400, 300);
		} catch (Exception e) {
		    //add your error handling code here
			e.printStackTrace();
		}
	}

}
